﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Universum.Model.Domain;

namespace Universum.Infrastructure.Persistence.Queries.Resource
{
	public class ResourceByOwnerAndPath : IDomainQuery<Model.Domain.Resource>
	{
		public ResourceByOwnerAndPath(string owner, string path)
		{
			Expression = it =>it.Owner == owner && it.Path == path ;
		}
		#region IDomainQuery<Resource> Members

		public System.Linq.Expressions.Expression<Func<Universum.Model.Domain.Resource, bool>> Expression
		{
			get;
			private set;
		}

		#endregion
	}
}
